// pages/selfhelpDeployment/deploymentDetails/posDetails/posDetails.js
import network_utils from '../../../../http/NetworkUtils'
const constants = require('../../../../common/Constants.js');
Page({

  /*
   * 页面的初始数据
   */
  data: {
    posDetail:{}
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let params = {
      storeId:options.storeId
    }
    network_utils.buildRequest(constants.Interfaces.FUNC_POS_GETMSG, params, {
      doHttpSucess: (response) => {
        if (constants.RetCodes.SUCCESS === response.retCode) {
          let posDetail = {
            storeShortName: response.storeShortName,
            storeType: response.storeType,
            jfeerate: response.jfeerate,
            debitCapamt: response.debitCapamt,
            dfeerate: response.dfeerate
          }
          this.setData({
            posDetail: posDetail
          })
          return true;
        }
        return false;
      }
    }).send();
  },

 
  
 

})